<%--
  Created by IntelliJ IDEA.
  User: 邹敦宇
  Date: 2021/3/11
  Time: 10:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!--头部-->
<div class="top" id="top">
    <!--头部bar-->
    <div class="top-bar">
        <div class="w1230 top-bar-main">
            <ul>
                <c:choose>
                    <c:when test="${not empty sessionScope.reception}">
                        <li><span>欢迎您，</span><a href="javascript:void(0)">${sessionScope.reception.username}</a></li>
                        <li><a href="/eshop/Users.do?m=logout&s=reception" class="login">退出</a></li>
                    </c:when>
                    <c:otherwise>
                        <li><a href="reception/login.jsp" class="login">登录</a></li>
                        <li><a href="register.html" class="register">注册</a></li>
                    </c:otherwise>
                </c:choose>
                <li><a href="reception/buyerTrade.jsp"><i class="fa fa-file-text-o"></i>我的订单</a></li>
                <li><a href="/eshop/shopCart.do?m=findShopCart&userID=${sessionScope.reception.id}"><i class="fa fa-shopping-cart"></i>购物车</a></li>
            </ul>
        </div>
    </div>
    <!--logo+搜索-->
    <div class="top-header w1230 clear-float">
        <a href="reception/index.jsp" target="_blank" class="logo">
            <img src="img/logo.png"/>
        </a>
        <div class="top-header-right">
            <!--搜索框-->
            <div class="search clear-float">
                <input type="text" placeholder="牛奶" class="search-txt" id="search-text"/>
                <a href="javascript:void(0)" class="search-btn">搜索</a>
            </div>
            <!--热搜-->
            <p class="hotkey">

            </p>
        </div>
    </div>
</div>
